package com.examination.client.enums;

/**
 * @author: XiaoDong
 * @date: 2021-10-17 15:37
 * @description:
 */
public enum CourierStatusEnum {


    STORAGE(1, "入库"),
    DELIVERY(2, "出库"),
    RETURN_DELIVERY(3, "退件出库"),
    RETURN_STORAGE(4, "退件入库"),
    HAVE_RECEIVED(5, "已签收"),
    TO_BE_STORED(6, "待入库");

    private Integer code;
    private String desc;

    CourierStatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getDesc() {
        return this.desc;
    }

    public static String getValue(Integer code) {
        CourierStatusEnum[] carTypeEnums = values();
        for (CourierStatusEnum courierStatusEnum : carTypeEnums) {
            if (courierStatusEnum.code.equals(code)) {
                return courierStatusEnum.desc;
            }
        }
        return null;
    }

}
